package com.comn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

@SpringBootApplication
@MapperScan(basePackages = "com.comn.mapper")
@ComponentScan("com.comn.service")
@ComponentScans(value = {
        @ComponentScan("com.common"),
        @ComponentScan("com.comn.controller"),
        @ComponentScan("com.comn.config") // 扫描配置 分页
})
public class ComApplication {
    public static void main(String[] args) {
        SpringApplication.run(ComApplication.class,args);
    }
}
